



# conda activate ycj-dev


# git clone --recursive https://github.com/camenduru/gaussian-splatting
# pip install -q plyfile
# cd gaussian-splatting
# pip install -q /root/exp/3dgs/gaussian-splatting/submodules/diff-gaussian-rasterization
# pip install -q /root/exp/3dgs/gaussian-splatting/submodules/simple-knn





# wget https://huggingface.co/camenduru/gaussian-splatting/resolve/main/tandt_db.zip


# unzip tandt_db.zip

python train.py -s /root/exp/3dgs/gaussian-splatting/demo_images/tandt/train
#  2>&1 | tee -a logs/tandt.log


# !wget https://huggingface.co/camenduru/gaussian-splatting/resolve/main/GaussianViewTest.zip
# !unzip GaussianViewTest.zip
# !python render.py -m /content/gaussian-splatting/GaussianViewTest/model
# !ffmpeg -framerate 3 -i /content/gaussian-splatting/GaussianViewTest/model/train/ours_30000/renders/%05d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:v libx264 -r 3 -pix_fmt yuv420p /content/renders.mp4
# !ffmpeg -framerate 3 -i /content/gaussian-splatting/GaussianViewTest/model/train/ours_30000/gt/%05d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:v libx264 -r 3 -pix_fmt yuv420p /content/gt.mp4 -y